package net.gcmz.zrqblog.service;

import java.util.List;

import net.gcmz.zrqblog.entity.User;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Sort;

/**
 * 
 *  用户逻辑操作接口
 *  
 * @author zhangrongquan
 * @since 2014-12-11
 */

public interface UserService {
	public User findOneByName(String name);

	public Page<User> findAllByLargeThanId(Long id, int page, int count,
			Sort sort);

	public User findAllByIdAndName(Long id, String name);

	public Page<User> findAllByLikeName(String name, int page, int count);

	public Page<User> findAllByInIds(List<Long> ids);

	public List<User> findAllByIds(List<Long> ids);

	public User findAllByName(String name);

}